<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>枣强通行码</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>

    <script src="http://hesuan.city1000.cn/ymt/layui/layui.js" charset="utf-8"></script>
    <script>
        layui.use(['form', 'layer', 'jquery'], function () {
            var form = layui.form,
                layer = layui.layer,
                $ = layui.jquery;
            $(document).ready(function () {
              	
				var code = getQueryVariable('code');
				if(code){
					window.location.href = 'http://zqymt.city1000.cn/url_forward/'+code;
				}else{
					window.location.href = 'http://user.city1000.cn:9999/weixin/wechat/h5/redirectSomeWhere?url=http://hesuan.city1000.cn/ymt/zq_url_forward.html';
				}
            })
        });
		function getQueryVariable(variable)
		{
		    var query = window.location.search.substring(1);
		    var vars = query.split("&");
		    for (var i=0;i<vars.length;i++) {
		            var pair = vars[i].split("=");
		            if(pair[0] == variable){return pair[1];}
		    }
		    return(false);   
		}
    </script>

</body>

</html>